package cn.kgc.sacla

/**
 * @Author: yan.
 * @Description:
 * @Date:Created in 2022/1/15 11:58.
 * @Modified By:
 */
object ClassDemo06 {
  case class Person(name:String="张三",var age:Int=23)

  def main(args: Array[String]): Unit = {
    val p =  Person()
    p.age = 18
    //p.name = "李四"
    println(p)

  }
}
